<!-- Begin issues/search_results.tpl -->
{opentable}
{titlebar colspan=$colspan title=$title}

   <tr>
     <td align="center">
       <table border="0" cellspacing="1" cellpadding="3" width="100%">
         <tr>
   <td align="right" >

<tr class="sectiontableheader" align="center">
{if in_array("flags",$smarty.session.prefs.show_fields)
and is_employee($smarty.session.userid)}
<td width="60">{$lg->flags}</td>
{/if}
<td align="left" width="10%">{$lg->group}</td>
{if in_array("issueid",$smarty.session.prefs.show_fields)}
<td width="5%">{$lg->ID}</td>
{/if}
<td align="left">{$lg->object}</td>

{if in_array("modified",$smarty.session.prefs.show_fields)}
<td width="10%"><a href="{$url}&sort=modified{if $smarty.get.sort eq "modified" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->last_modified}</a></td>
{/if}
{if in_array("category",$smarty.session.prefs.show_fields)}
<td width="10%"><a href="{$url}&sort=category{if $smarty.get.sort eq "category" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->type}</a></td>
{/if}
{if in_array("product",$smarty.session.prefs.show_fields)}
<td width="10%"><a href="{$url}&sort=product{if $smarty.get.sort eq "product" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->product}</a></td>
{/if}
{if in_array("status",$smarty.session.prefs.show_fields)}
<td width="10%"><a href="{$url}&sort=status{if $smarty.get.sort eq "status" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->status}</a></td>
{/if}
<td width="5%">[{$lg->log}]</td>
</tr>
{if is_array($issues)}

{foreach from=$issues item=issue}
<tr class="{sevrow sev=$issue.severity}" align="center">
{if in_array("flags",$smarty.session.prefs.show_fields)
and is_employee($smarty.session.userid)}
<td width="60">
{if $issue.private eq "t"}
<img src="{$smarty.env.imgs.private}" width="16" height="16" border="0" alt="Private Issue" />
{/if}
{if $issue.escto eq TRUE}
<img src="{$smarty.env.imgs.deescalate}" width="16" height="16" border="0" alt="Escalated into this Group" />
{/if}
{if $issue.escfrom eq TRUE}
<img src="{$smarty.env.imgs.escalate}" width="16" height="16" border="0" alt="Escalated out of this Group" />
{/if}
</td>
{/if}
<td align="left" width="10%">{groupname id=$issue.gid}</td>
{if in_array("issueid",$smarty.session.prefs.show_fields)}
<td width="5%">{$issue.issueid}</td>
{/if}
<td align="left"><a href="?module=issues&action=view&issueid={$issue.issueid}&gid={$issue.gid}">{$issue.objet|stripslashes}</td>

{if in_array("modified",$smarty.session.prefs.show_fields)}
<td width="10%">{$issue.modified|userdtime}</td>
{/if}
{if in_array("category",$smarty.session.prefs.show_fields)}
<td width="10%">{category id=$issue.category}</td>
{/if}
{if in_array("product",$smarty.session.prefs.show_fields)}
<td width="15%">{product id=$issue.product}</td>
{/if}
{if in_array("status",$smarty.session.prefs.show_fields)}
<td width="15%">{status id=$issue.status}</td>
{/if}
<td align="center"><a href="?module=issues&action=view_log_only&issueid={$issue.issueid}"><img src="{$smarty.env.imgs.issue_log}" border="0"></a></td>

</tr>
{/foreach}
{else}
<tr class="data" align="center">
<td colspan="{$colspan}">{$lg->no_issue}</td></tr>
{/if}

</table>
</table>

<!-- End issues/search_results.tpl -->

